let request = (url,method,data)=>{
  return new Promise((resolve,reject)=>{
      $.ajax({
          url:url,
          method:method,
          data:data,
          success(res){
              resolve(res)
          },
          error(err){
              reject(err)
          }
      })
  })
}
